<%@ include file="/common/taglibs.jsp"%>

<head>
<title><fmt:message key="formularioOirsList.title" /></title>
<meta name="heading"
	content="<fmt:message key='formularioOirsList.consultaTicket'/>" />
<meta name="menu" content="FormularioOirsMenu" />
</head>


<s:form id="formularioOirsForm" action="consultaSolicitudesList"
	method="post" validate="true">

	<table class="bordesimple center">
		<caption><s:text name="formularioOirsList.consultaTicket" /></caption>
		<tr>
			<td><s:textfield key="formularioOirs.solicitante.rut"
				maxlength="10" cssClass="text medium" required="true" /></td>
			<td><s:textfield key="formularioOirs.solicitante.dv"
				maxlength="1" cssClass="text small" required="true" /></td>
			<td><s:textfield key="formularioOirs.solicitante.ticket"
				maxlength="3" cssClass="text small" required="true" /></td>
			<td><s:submit cssClass="button" method="consultaSolicitudesList"
				key="button.search" theme="simple" /></td>
			<td><input type="button" class="button"
				value="<fmt:message key='button.cancel'/>"
				onclick="location.href='<c:url value="/"/>'" /></td>
		</tr>
	</table>

</s:form>

<display:table name="formularioOirss" class="table" requestURI=""
	id="formularioOirsList" export="true" pagesize="25">
	<display:column property="id" media="csv excel xml pdf"
		titleKey="formularioOirs.id" />
	<display:column sortProperty="fechaIngreso" sortable="true"
		href="consultaSolicitudesDetalle.html" media="html" paramId="id"
		paramProperty="id" titleKey="formularioOirs.fechaIngreso">
		<fmt:formatDate value="${formularioOirsList.fechaIngreso}"
			pattern="${datePattern}" />
	</display:column>
	<display:column property="tipoSolicitud" sortable="true"
		titleKey="formularioOirs.tipoSolicitud.id" />
	<display:column property="estado" sortable="true"
		titleKey="formularioOirs.estado.descripcion" />

	<display:setProperty name="paging.banner.item_name">
		<fmt:message key="formularioOirsList.formularioOirs" />
	</display:setProperty>
	<display:setProperty name="paging.banner.items_name">
		<fmt:message key="formularioOirsList.formularioOirss" />
	</display:setProperty>

	<display:setProperty name="export.excel.filename">
		<fmt:message key="formularioOirsList.title" />.xls</display:setProperty>
	<display:setProperty name="export.csv.filename">
		<fmt:message key="formularioOirsList.title" />.csv</display:setProperty>
	<display:setProperty name="export.pdf.filename">
		<fmt:message key="formularioOirsList.title" />.pdf</display:setProperty>
</display:table>

<script type="text/javascript">
    highlightTableRows("formularioOirsList");
</script>
